package com.example.back.fallback;

import com.example.back.feign.FileFeign;
import com.example.common.support.ApiException;
import com.example.common.support.Result;
import com.example.common.support.ResultCode;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * 消费文件服务 - 熔断降级处理
 *
 * @Author wxy
 * @Date 2021/1/12 14:08
 * @Version 1.0
 */
@Component
public class FileFallback implements FileFeign {

    @Override
    public Result<Object> updateFile(MultipartFile multipartFile) {
        return Result.downgrade();
    }
}
